package cn.itcast;

import cn.itcast.domain.User;

import java.util.List;

/**
 * @author zhangzhuang@123456
 * @DATE 2018/11/6
 * @TIME 19:42
 */
public interface UserDao {

    List<User> findAll();

    void addUser(User user);

    void updateUser(User user);

    User findUserById(Integer id);

    User findOne(User user);

    void deleteUserById(Integer id);

    int num();
}
